Rename gtk_activatable_reset to gtk_activatable_sync_action_properties,
authorMatthias Clasen <matthiasc@src.gnome.org>
Sun, 22 Feb 2009 05:20:14 +0000 (05:20 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Sun, 22 Feb 2009 05:20:14 +0000 (05:20 +0000)
        * gtk/gtk.symbols:
        * gtk/gtkactivatable.[hc]: Rename gtk_activatable_reset to
        gtk_activatable_sync_action_properties, since the previous name
        was deemed too generic. Update all implementations.

svn path=/trunk/; revision=22389

17 files changed:
ChangeLog
docs/reference/gtk/gtk-sections.txt
gtk/gtk.symbols
gtk/gtkactivatable.c
gtk/gtkactivatable.h
gtk/gtkbutton.c
gtk/gtkcheckmenuitem.c
gtk/gtkimagemenuitem.c
gtk/gtkmenuitem.c
gtk/gtkrecentchooser.c
gtk/gtkrecentchooserdefault.c
gtk/gtkrecentchoosermenu.c
gtk/gtkrecentchooserprivate.h
gtk/gtktogglebutton.c
gtk/gtktoggletoolbutton.c
gtk/gtktoolbutton.c
gtk/gtktoolitem.c

index 69fd9b8ca284a7989c34713de5d7a69713be891d..eae5c630f771823e2286782d05cde1236d5edf37 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2009-02-22  Matthias Clasen <mclasen@redhat.com>
+
+       * gtk/gtk.symbols:
+       * gtk/gtkactivatable.[hc]: Rename gtk_activatable_reset to
+       gtk_activatable_sync_action_properties, since the previous name
+       was deemed too generic. Update all implementations.
+
 2009-02-19  Ray Strode  <rstrode@redhat.com>
 
        * gdk/x11/gdkscreen-x11.c
index 5ce7e395aabc907eed66b37dbf16e28872737ece..1e4ec4ee8f5eb1d3a385ecd893629a45e9117d83 100644 (file)
@@ -236,7 +236,7 @@ GtkActivatableIface
 gtk_activatable_do_set_related_action
 gtk_activatable_get_related_action
 gtk_activatable_get_use_action_appearance
-gtk_activatable_reset
+gtk_activatable_sync_action_properties
 gtk_activatable_set_related_action
 gtk_activatable_set_use_action_appearance
 <SUBSECTION Standard>
index 806e9bef0fe22a18ee20df165ee0f06192ee49b8..b2bb94cd5600743a2347616d52463f1c55f676c3 100644 (file)
@@ -234,7 +234,7 @@ gtk_activatable_do_set_related_action
 gtk_activatable_get_related_action
 gtk_activatable_get_type G_GNUC_CONST
 gtk_activatable_get_use_action_appearance
-gtk_activatable_reset
+gtk_activatable_sync_action_properties
 gtk_activatable_set_related_action
 gtk_activatable_set_use_action_appearance
 #endif
index 198c8ba975571a5911531fcbccaad668a9007c14..8e1483726c458efecc5051ca16db213c54ab5662 100644 (file)
  *
  * Activatable widgets can be connected to a #GtkAction and reflects
  * the state of its action. A #GtkActivatable can also provide feedback
- * through its action, as they are responsible for activating their 
+ * through its action, as they are responsible for activating their
  * related actions.
  *
  * <refsect2>
  * <title>Implementing GtkActivatable</title>
  * <para>
  * When extending a class that is already #GtkActivatable; it is only
- * necessary to implement the #GtkActivatable->reset() and #GtkActivatable->update()
- * methods and chain up to the parent implementation, however when introducing
+ * necessary to implement the #GtkActivatable->sync_action_properties()
+ * and #GtkActivatable->update() methods and chain up to the parent
+ * implementation, however when introducing
  * a new #GtkActivatable class; the #GtkActivatable:related-action and
  * #GtkActivatable:use-action-appearance properties need to be handled by
- * the implementor. Handling these properties is mostly a matter of installing 
- * the action pointer and boolean flag on your instance, and calling 
- * gtk_activatable_do_set_related_action() and gtk_activatable_reset() at the
- * appropriate times.
- * </para> 
+ * the implementor. Handling these properties is mostly a matter of installing
+ * the action pointer and boolean flag on your instance, and calling
+ * gtk_activatable_do_set_related_action() and
+ * gtk_activatable_sync_action_properties() at the appropriate times.
+ * </para>
  * <example>
  * <title>A class fragment implementing #GtkActivatable</title>
  * <programlisting><![CDATA[
  *
  * enum {
  * ...
- * 
+ *
  * PROP_ACTIVATABLE_RELATED_ACTION,
  * PROP_ACTIVATABLE_USE_ACTION_APPEARANCE
  * }
  * 
  * ...
  * 
- * static void foo_bar_activatable_interface_init (GtkActivatableIface  *iface);
- * static void foo_bar_activatable_update         (GtkActivatable       *activatable,
- *                                                GtkAction            *action,
- *                                                const gchar          *property_name);
- * static void foo_bar_activatable_reset          (GtkActivatable       *activatable,
- *                                                GtkAction            *action);
+ * static void foo_bar_activatable_interface_init         (GtkActivatableIface  *iface);
+ * static void foo_bar_activatable_update                 (GtkActivatable       *activatable,
+ *                                                        GtkAction            *action,
+ *                                                        const gchar          *property_name);
+ * static void foo_bar_activatable_sync_action_properties (GtkActivatable       *activatable,
+ *                                                        GtkAction            *action);
  * ...
- * 
- * 
+ *
+ *
  * static void
  * foo_bar_class_init (FooBarClass *klass)
  * {
- * 
+ *
  *   ...
- * 
+ *
  *   g_object_class_override_property (gobject_class, PROP_ACTIVATABLE_RELATED_ACTION, "related-action");
  *   g_object_class_override_property (gobject_class, PROP_ACTIVATABLE_USE_ACTION_APPEARANCE, "use-action-appearance");
- * 
+ *
  *   ...
  * }
- * 
- * 
- * static void 
+ *
+ *
+ * static void
  * foo_bar_activatable_interface_init (GtkActivatableIface  *iface)
  * {
  *   iface->update = foo_bar_activatable_update;
- *   iface->reset = foo_bar_activatable_reset;
+ *   iface->sync_action_properties = foo_bar_activatable_sync_action_properties;
  * }
  * 
  * ... Break the reference using gtk_activatable_do_set_related_action()...
  *     {
  *       priv->use_action_appearance = use_appearance;
  *       
- *       gtk_activatable_reset (GTK_ACTIVATABLE (bar), priv->action);
+ *       gtk_activatable_sync_action_properties (GTK_ACTIVATABLE (bar), priv->action);
  *     }
  * }
  * 
  * }
  * 
  * ... Selectively reset and update activatable depending on the use-action-appearance property ...
- * static void 
- * gtk_button_activatable_reset (GtkActivatable       *activatable,
- *                              GtkAction            *action)
+ * static void
+ * gtk_button_activatable_sync_action_properties (GtkActivatable       *activatable,
+ *                                               GtkAction            *action)
  * {
  *   GtkButtonPrivate *priv = GTK_BUTTON_GET_PRIVATE (activatable);
  * 
  * 
  * static void 
  * foo_bar_activatable_update (GtkActivatable       *activatable,
- *                         GtkAction            *action,
- *                         const gchar          *property_name)
+ *                            GtkAction            *action,
+ *                            const gchar          *property_name)
  * {
  *   FooBarPrivate *priv = FOO_BAR_GET_PRIVATE (activatable);
  * 
@@ -316,7 +317,8 @@ gtk_activatable_class_init (gpointer g_iface)
    * should be ignored by the #GtkActivatable when this property is %FALSE.
    *
    * <note><para>#GtkActivatable implementors need to handle this property
-   * and call gtk_activatable_reset() on the activatable widget when it changes.</para></note>
+   * and call gtk_activatable_sync_action_properties() on the activatable
+   * widget when it changes.</para></note>
    *
    * Since: 2.16
    */
@@ -348,29 +350,30 @@ gtk_activatable_update (GtkActivatable *activatable,
 }
 
 /**
- * gtk_activatable_reset:
+ * gtk_activatable_sync_action_properties:
  * @activatable: a #GtkActivatable
  * @action: the related #GtkAction or %NULL
  *
- * This is called to update the activatable completely, this is called internally when 
- * the #GtkActivatable::related-action property is set or unset and by the implementing 
- * class when #GtkActivatable::use-action-appearance changes.
+ * This is called to update the activatable completely, this is called
+ * internally when the #GtkActivatable::related-action property is set
+ * or unset and by the implementing class when
+ * #GtkActivatable::use-action-appearance changes.
  *
  * Since: 2.16
  **/
 void
-gtk_activatable_reset (GtkActivatable *activatable,
-                      GtkAction      *action)
+gtk_activatable_sync_action_properties (GtkActivatable *activatable,
+                                       GtkAction      *action)
 {
   GtkActivatableIface *iface;
 
   g_return_if_fail (GTK_IS_ACTIVATABLE (activatable));
 
   iface = GTK_ACTIVATABLE_GET_IFACE (activatable);
-  if (iface->reset)
-    iface->reset (activatable, action);
+  if (iface->sync_action_properties)
+    iface->sync_action_properties (activatable, action);
   else
-    g_critical ("GtkActivatable->reset() unimplemented for type %s", 
+    g_critical ("GtkActivatable->sync_action_properties() unimplemented for type %s", 
                g_type_name (G_OBJECT_TYPE (activatable)));
 }
 
@@ -450,16 +453,16 @@ gtk_activatable_do_set_related_action (GtkActivatable *activatable,
 
           /*
            * We don't want prev_action to be activated
-           * during the reset() call when syncing "active".
+           * during the sync_action_properties() call when syncing "active".
            */ 
           gtk_action_block_activate (prev_action);
        }
       
       /* Some applications rely on their proxy UI to be set up
        * before they receive the ::connect-proxy signal, so we
-       * need to call reset() before add_to_proxy_list().
+       * need to call sync_action_properties() before add_to_proxy_list().
        */
-      gtk_activatable_reset (activatable, action);
+      gtk_activatable_sync_action_properties (activatable, action);
 
       if (prev_action)
         {
@@ -470,9 +473,9 @@ gtk_activatable_do_set_related_action (GtkActivatable *activatable,
       if (action)
        {
          g_object_ref (action);
-         
+
          g_signal_connect (G_OBJECT (action), "notify", G_CALLBACK (gtk_activatable_action_notify), activatable);
-         
+
          _gtk_action_add_to_proxy_list (action, GTK_WIDGET (activatable));
 
           g_object_set_data (activatable, "gtk-action", action);
@@ -511,17 +514,19 @@ gtk_activatable_get_related_action (GtkActivatable *activatable)
  * @activatable: a #GtkActivatable
  * @use_appearance: whether to use the actions appearance
  *
- * Sets whether this activatable should reset its layout and appearance 
- * when setting the related action or when the action changes appearance 
+ * Sets whether this activatable should reset its layout and appearance
+ * when setting the related action or when the action changes appearance
  *
- * <note><para>#GtkActivatable implementors need to handle the #GtkActivatable:use-action-appearance
- * property and call gtk_activatable_reset() to update @activatable if needed.</para></note>
+ * <note><para>#GtkActivatable implementors need to handle the
+ * #GtkActivatable:use-action-appearance property and call
+ * gtk_activatable_sync_action_properties() to update @activatable
+ * if needed.</para></note>
  *
  * Since: 2.16
  **/
 void
-gtk_activatable_set_use_action_appearance  (GtkActivatable *activatable,
-                                           gboolean        use_appearance)
+gtk_activatable_set_use_action_appearance (GtkActivatable *activatable,
+                                          gboolean        use_appearance)
 {
   g_object_set (activatable, "use-action-appearance", use_appearance, NULL);
 }
index 75478899edb9ae0ae57ccb37b32e41b4f9b327eb..45d1decd461fff683e19b0d1d604bb97f16de614 100644 (file)
@@ -45,8 +45,8 @@ typedef struct _GtkActivatableIface GtkActivatableIface;
  * @update: Called to update the activatable when its related action's properties change.
  * You must check the #GtkActivatable:use-action-appearance property only apply action
  * properties that are meant to effect the appearance accordingly.
- * @reset: Called to update the activatable completely, this is called internally when 
- * #GtkActivatable::related-action property is set or unset and by the implementor when 
+ * @sync_action_properties: Called to update the activatable completely, this is called internally when
+ * #GtkActivatable::related-action property is set or unset and by the implementor when
  * #GtkActivatable::use-action-appearance changes.<note><para>This method can be called
  * with a %NULL action at times</para></note>
  *
@@ -58,17 +58,17 @@ struct _GtkActivatableIface
   GTypeInterface g_iface;
 
   /* virtual table */
-  void   (* update)  (GtkActivatable *activatable, 
-                     GtkAction      *action, 
-                     const gchar    *property_name);
-  void   (* reset)   (GtkActivatable *activatable, 
-                     GtkAction      *action);
+  void   (* update)                   (GtkActivatable *activatable,
+                                      GtkAction      *action,
+                                      const gchar    *property_name);
+  void   (* sync_action_properties)   (GtkActivatable *activatable,
+                                      GtkAction      *action);
 };
 
 
 GType      gtk_activatable_get_type                   (void) G_GNUC_CONST;
 
-void       gtk_activatable_reset                      (GtkActivatable *activatable,
+void       gtk_activatable_sync_action_properties     (GtkActivatable *activatable,
                                                       GtkAction      *action);
 
 void       gtk_activatable_set_related_action         (GtkActivatable *activatable,
index 702bbfa15cdf9d5e7a6f301d218a81ec6b9a2976..d749344a0527245961a20e0910cd65eb6a45289b 100644 (file)
@@ -148,16 +148,16 @@ static void gtk_button_grab_notify     (GtkWidget             *widget,
                                        gboolean               was_grabbed);
 
 
-static void gtk_button_activatable_interface_init (GtkActivatableIface  *iface);
-static void gtk_button_activatable_update         (GtkActivatable       *activatable,
-                                                  GtkAction            *action,
-                                                  const gchar          *property_name);
-static void gtk_button_activatable_reset          (GtkActivatable       *activatable,
-                                                  GtkAction            *action);
-static void gtk_button_set_related_action         (GtkButton            *button, 
-                                                  GtkAction            *action);
-static void gtk_button_set_use_action_appearance  (GtkButton            *button, 
-                                                  gboolean              use_appearance);
+static void gtk_button_activatable_interface_init         (GtkActivatableIface  *iface);
+static void gtk_button_update                    (GtkActivatable       *activatable,
+                                                 GtkAction            *action,
+                                                 const gchar          *property_name);
+static void gtk_button_sync_action_properties    (GtkActivatable       *activatable,
+                                                  GtkAction            *action);
+static void gtk_button_set_related_action        (GtkButton            *button,
+                                                 GtkAction            *action);
+static void gtk_button_set_use_action_appearance (GtkButton            *button,
+                                                 gboolean              use_appearance);
 
 static guint button_signals[LAST_SIGNAL] = { 0 };
 
@@ -741,8 +741,8 @@ gtk_button_get_property (GObject         *object,
 static void 
 gtk_button_activatable_interface_init (GtkActivatableIface  *iface)
 {
-  iface->update = gtk_button_activatable_update;
-  iface->reset = gtk_button_activatable_reset;
+  iface->update = gtk_button_update;
+  iface->sync_action_properties = gtk_button_sync_action_properties;
 }
 
 static void
@@ -808,9 +808,9 @@ activatable_update_gicon (GtkButton *button,
 }
 
 static void 
-gtk_button_activatable_update (GtkActivatable       *activatable,
-                              GtkAction            *action,
-                              const gchar          *property_name)
+gtk_button_update (GtkActivatable *activatable,
+                  GtkAction      *action,
+                  const gchar    *property_name)
 {
   GtkButtonPrivate *priv = GTK_BUTTON_GET_PRIVATE (activatable);
 
@@ -837,9 +837,9 @@ gtk_button_activatable_update (GtkActivatable       *activatable,
     activatable_update_icon_name (GTK_BUTTON (activatable), action);
 }
 
-static void 
-gtk_button_activatable_reset (GtkActivatable       *activatable,
-                             GtkAction            *action)
+static void
+gtk_button_sync_action_properties (GtkActivatable *activatable,
+                                  GtkAction      *action)
 {
   GtkButtonPrivate *priv = GTK_BUTTON_GET_PRIVATE (activatable);
 
@@ -863,8 +863,8 @@ gtk_button_activatable_reset (GtkActivatable       *activatable,
 }
 
 static void
-gtk_button_set_related_action (GtkButton   *button, 
-                              GtkAction   *action)
+gtk_button_set_related_action (GtkButton *button,
+                              GtkAction *action)
 {
   GtkButtonPrivate *priv = GTK_BUTTON_GET_PRIVATE (button);
 
@@ -877,7 +877,7 @@ gtk_button_set_related_action (GtkButton   *button,
    */
   g_signal_handlers_disconnect_by_func (button, gtk_real_button_clicked, NULL);
   if (action)
-    g_signal_connect_after (button, "clicked", 
+    g_signal_connect_after (button, "clicked",
                             G_CALLBACK (gtk_real_button_clicked), NULL);
 
   gtk_activatable_do_set_related_action (GTK_ACTIVATABLE (button), action);
@@ -886,16 +886,16 @@ gtk_button_set_related_action (GtkButton   *button,
 }
 
 static void
-gtk_button_set_use_action_appearance (GtkButton   *button, 
-                                     gboolean     use_appearance)
+gtk_button_set_use_action_appearance (GtkButton *button,
+                                     gboolean   use_appearance)
 {
   GtkButtonPrivate *priv = GTK_BUTTON_GET_PRIVATE (button);
 
   if (priv->use_action_appearance != use_appearance)
     {
       priv->use_action_appearance = use_appearance;
-      
-      gtk_activatable_reset (GTK_ACTIVATABLE (button), priv->action);
+
+      gtk_activatable_sync_action_properties (GTK_ACTIVATABLE (button), priv->action);
     }
 }
 
index 1bfc26b7695a4c46dfc114e0da82459f0698cda9..8bf0972688486be8076f3915c5315dc7e400a750 100644 (file)
@@ -65,10 +65,10 @@ static void gtk_check_menu_item_get_property         (GObject               *obj
                                                      GParamSpec            *pspec);
 
 static void gtk_check_menu_item_activatable_interface_init (GtkActivatableIface  *iface);
-static void gtk_check_menu_item_activatable_update         (GtkActivatable       *activatable,
+static void gtk_check_menu_item_update                     (GtkActivatable       *activatable,
                                                            GtkAction            *action,
                                                            const gchar          *property_name);
-static void gtk_check_menu_item_activatable_reset          (GtkActivatable       *activatable,
+static void gtk_check_menu_item_sync_action_properties     (GtkActivatable       *activatable,
                                                            GtkAction            *action);
 
 static GtkActivatableIface *parent_activatable_iface;
@@ -148,14 +148,14 @@ static void
 gtk_check_menu_item_activatable_interface_init (GtkActivatableIface  *iface)
 {
   parent_activatable_iface = g_type_interface_peek_parent (iface);
-  iface->update = gtk_check_menu_item_activatable_update;
-  iface->reset = gtk_check_menu_item_activatable_reset;
+  iface->update = gtk_check_menu_item_update;
+  iface->sync_action_properties = gtk_check_menu_item_sync_action_properties;
 }
 
-static void 
-gtk_check_menu_item_activatable_update (GtkActivatable       *activatable,
-                                       GtkAction            *action,
-                                       const gchar          *property_name)
+static void
+gtk_check_menu_item_update (GtkActivatable *activatable,
+                           GtkAction      *action,
+                           const gchar    *property_name)
 {
   GtkCheckMenuItem *check_menu_item;
 
@@ -174,19 +174,19 @@ gtk_check_menu_item_activatable_update (GtkActivatable       *activatable,
     return;
 
   if (strcmp (property_name, "draw-as-radio") == 0)
-    gtk_check_menu_item_set_draw_as_radio (check_menu_item, 
+    gtk_check_menu_item_set_draw_as_radio (check_menu_item,
                                           gtk_toggle_action_get_draw_as_radio (GTK_TOGGLE_ACTION (action)));
 }
 
-static void 
-gtk_check_menu_item_activatable_reset (GtkActivatable       *activatable,
-                                      GtkAction            *action)
+static void
+gtk_check_menu_item_sync_action_properties (GtkActivatable *activatable,
+                                           GtkAction      *action)
 {
   GtkCheckMenuItem *check_menu_item;
 
   check_menu_item = GTK_CHECK_MENU_ITEM (activatable);
 
-  parent_activatable_iface->reset (activatable, action);
+  parent_activatable_iface->sync_action_properties (activatable, action);
 
   if (!GTK_IS_TOGGLE_ACTION (action))
     return;
@@ -198,7 +198,7 @@ gtk_check_menu_item_activatable_reset (GtkActivatable       *activatable,
   if (!gtk_activatable_get_use_action_appearance (activatable))
     return;
 
-  gtk_check_menu_item_set_draw_as_radio (check_menu_item, 
+  gtk_check_menu_item_set_draw_as_radio (check_menu_item,
                                         gtk_toggle_action_get_draw_as_radio (GTK_TOGGLE_ACTION (action)));
 }
 
index 04cc352ff81aa1a43e47978c9147a7e904c8b6c5..8948c9312a96320506fdca312dc3a0cc5d5fd34d 100644 (file)
@@ -72,10 +72,10 @@ static void gtk_image_menu_item_screen_changed       (GtkWidget        *widget,
 static void gtk_image_menu_item_recalculate          (GtkImageMenuItem *image_menu_item);
 
 static void gtk_image_menu_item_activatable_interface_init (GtkActivatableIface  *iface);
-static void gtk_image_menu_item_activatable_update         (GtkActivatable       *activatable,
+static void gtk_image_menu_item_update                     (GtkActivatable       *activatable,
                                                            GtkAction            *action,
                                                            const gchar          *property_name);
-static void gtk_image_menu_item_activatable_reset          (GtkActivatable       *activatable,
+static void gtk_image_menu_item_sync_action_properties     (GtkActivatable       *activatable,
                                                            GtkAction            *action);
 
 typedef struct {
@@ -552,8 +552,8 @@ static void
 gtk_image_menu_item_activatable_interface_init (GtkActivatableIface  *iface)
 {
   parent_activatable_iface = g_type_interface_peek_parent (iface);
-  iface->update = gtk_image_menu_item_activatable_update;
-  iface->reset = gtk_image_menu_item_activatable_reset;
+  iface->update = gtk_image_menu_item_update;
+  iface->sync_action_properties = gtk_image_menu_item_sync_action_properties;
 }
 
 static gboolean
@@ -609,10 +609,10 @@ activatable_update_icon_name (GtkImageMenuItem *image_menu_item, GtkAction *acti
     }
 }
 
-static void 
-gtk_image_menu_item_activatable_update (GtkActivatable       *activatable,
-                                       GtkAction            *action,
-                                       const gchar          *property_name)
+static void
+gtk_image_menu_item_update (GtkActivatable *activatable,
+                           GtkAction      *action,
+                           const gchar    *property_name)
 {
   GtkImageMenuItem *image_menu_item;
   GtkWidget *image;
@@ -635,8 +635,8 @@ gtk_image_menu_item_activatable_update (GtkActivatable       *activatable,
 }
 
 static void 
-gtk_image_menu_item_activatable_reset (GtkActivatable       *activatable,
-                                      GtkAction            *action)
+gtk_image_menu_item_sync_action_properties (GtkActivatable *activatable,
+                                           GtkAction      *action)
 {
   GtkImageMenuItem *image_menu_item;
   GtkWidget *image;
@@ -644,7 +644,7 @@ gtk_image_menu_item_activatable_reset (GtkActivatable       *activatable,
 
   image_menu_item = GTK_IMAGE_MENU_ITEM (activatable);
 
-  parent_activatable_iface->reset (activatable, action);
+  parent_activatable_iface->sync_action_properties (activatable, action);
 
   if (!action)
     return;
index 03eca0bf59fc1fe42870dfc1330a946b088bb3ec..ced23c099a3be7be41dd868ef1e45c497e54b986 100644 (file)
@@ -134,10 +134,10 @@ static void gtk_menu_item_buildable_add_child      (GtkBuildable        *buildab
                                                    const gchar         *type);
 
 static void gtk_menu_item_activatable_interface_init (GtkActivatableIface  *iface);
-static void gtk_menu_item_activatable_update         (GtkActivatable       *activatable,
+static void gtk_menu_item_update                     (GtkActivatable       *activatable,
                                                      GtkAction            *action,
                                                      const gchar          *property_name);
-static void gtk_menu_item_activatable_reset          (GtkActivatable       *activatable,
+static void gtk_menu_item_sync_action_properties     (GtkActivatable       *activatable,
                                                      GtkAction            *action);
 static void gtk_menu_item_set_related_action         (GtkMenuItem          *menu_item, 
                                                      GtkAction            *action);
@@ -576,15 +576,15 @@ gtk_menu_item_buildable_add_child (GtkBuildable *buildable,
 static void
 gtk_menu_item_activatable_interface_init (GtkActivatableIface *iface)
 {
-  iface->update = gtk_menu_item_activatable_update;
-  iface->reset = gtk_menu_item_activatable_reset;
+  iface->update = gtk_menu_item_update;
+  iface->sync_action_properties = gtk_menu_item_sync_action_properties;
 }
 
-static void 
+static void
 activatable_update_label (GtkMenuItem *menu_item, GtkAction *action)
 {
   GtkWidget *child = GTK_BIN (menu_item)->child;
-         
+
   if (GTK_IS_LABEL (child))
     {
       const gchar *label;
@@ -597,9 +597,9 @@ activatable_update_label (GtkMenuItem *menu_item, GtkAction *action)
 gboolean _gtk_menu_is_empty (GtkWidget *menu);
 
 static void
-gtk_menu_item_activatable_update (GtkActivatable *activatable,
-                                 GtkAction      *action,
-                                 const gchar    *property_name)
+gtk_menu_item_update (GtkActivatable *activatable,
+                     GtkAction      *action,
+                     const gchar    *property_name)
 {
   GtkMenuItem *menu_item = GTK_MENU_ITEM (activatable);
   GtkMenuItemPrivate *priv = GET_PRIVATE (menu_item);
@@ -617,8 +617,8 @@ gtk_menu_item_activatable_update (GtkActivatable *activatable,
 }
 
 static void
-gtk_menu_item_activatable_reset (GtkActivatable *activatable,
-                                GtkAction      *action)
+gtk_menu_item_sync_action_properties (GtkActivatable *activatable,
+                                     GtkAction      *action)
 {
   GtkMenuItem *menu_item = GTK_MENU_ITEM (activatable);
   GtkMenuItemPrivate *priv = GET_PRIVATE (menu_item);
@@ -626,7 +626,7 @@ gtk_menu_item_activatable_reset (GtkActivatable *activatable,
   if (!action)
     return;
 
-  _gtk_action_sync_menu_visible (action, GTK_WIDGET (menu_item), 
+  _gtk_action_sync_menu_visible (action, GTK_WIDGET (menu_item),
                                 _gtk_menu_is_empty (gtk_menu_item_get_submenu (menu_item)));
 
   gtk_widget_set_sensitive (GTK_WIDGET (menu_item), gtk_action_is_sensitive (action));
@@ -634,14 +634,14 @@ gtk_menu_item_activatable_reset (GtkActivatable *activatable,
   if (priv->use_action_appearance)
     {
       GtkWidget *label = GTK_BIN (menu_item)->child;
-         
+
       /* make sure label is a label */
       if (label && !GTK_IS_LABEL (label))
        {
          gtk_container_remove (GTK_CONTAINER (menu_item), label);
          label = NULL;
        }
-         
+
       if (!label)
        label = g_object_new (GTK_TYPE_ACCEL_LABEL,
                              "use-underline", TRUE,
@@ -649,18 +649,18 @@ gtk_menu_item_activatable_reset (GtkActivatable *activatable,
                              "visible", TRUE,
                              "parent", menu_item,
                              NULL);
-      
+
       if (GTK_IS_ACCEL_LABEL (label) && gtk_action_get_accel_path (action))
        g_object_set (label,
                      "accel-closure", gtk_action_get_accel_closure (action),
                      NULL);
-      
+
       activatable_update_label (menu_item, action);
     }
 }
 
 static void
-gtk_menu_item_set_related_action (GtkMenuItem *menu_item, 
+gtk_menu_item_set_related_action (GtkMenuItem *menu_item,
                                  GtkAction   *action)
 {
     GtkMenuItemPrivate *priv = GET_PRIVATE (menu_item);
@@ -691,7 +691,7 @@ gtk_menu_item_set_related_action (GtkMenuItem *menu_item,
 }
 
 static void
-gtk_menu_item_set_use_action_appearance (GtkMenuItem *menu_item, 
+gtk_menu_item_set_use_action_appearance (GtkMenuItem *menu_item,
                                         gboolean     use_appearance)
 {
     GtkMenuItemPrivate *priv = GET_PRIVATE (menu_item);
@@ -699,8 +699,8 @@ gtk_menu_item_set_use_action_appearance (GtkMenuItem *menu_item,
     if (priv->use_action_appearance != use_appearance)
       {
        priv->use_action_appearance = use_appearance;
-       
-       gtk_activatable_reset (GTK_ACTIVATABLE (menu_item), priv->action);
+
+       gtk_activatable_sync_action_properties (GTK_ACTIVATABLE (menu_item), priv->action);
       }
 }
 
index 9ebe4c9a977e53ceea6da9bb503558a224c68136..5975353b2faaad282c4717d2e4a24839a7935e63 100644 (file)
@@ -1094,9 +1094,9 @@ _gtk_recent_chooser_selection_changed (GtkRecentChooser *chooser)
 }
 
 void
-_gtk_recent_chooser_activatable_update (GtkActivatable *activatable,
-                                       GtkAction      *action,
-                                       const gchar    *property_name)
+_gtk_recent_chooser_update (GtkActivatable *activatable,
+                           GtkAction      *action,
+                           const gchar    *property_name)
 {
   GtkRecentChooser *recent_chooser = GTK_RECENT_CHOOSER (activatable);
   GtkRecentChooser *action_chooser = GTK_RECENT_CHOOSER (action);
@@ -1124,8 +1124,8 @@ _gtk_recent_chooser_activatable_update (GtkActivatable *activatable,
 }
 
 void
-_gtk_recent_chooser_activatable_reset (GtkActivatable *activatable,
-                                      GtkAction      *action)
+_gtk_recent_chooser_sync_action_properties (GtkActivatable *activatable,
+                                           GtkAction      *action)
 {
   GtkRecentChooser *recent_chooser = GTK_RECENT_CHOOSER (activatable);
   GtkRecentChooser *action_chooser = GTK_RECENT_CHOOSER (action);
@@ -1148,7 +1148,7 @@ _gtk_recent_chooser_activatable_reset (GtkActivatable *activatable,
 }
 
 void
-_gtk_recent_chooser_set_related_action (GtkRecentChooser *recent_chooser, 
+_gtk_recent_chooser_set_related_action (GtkRecentChooser *recent_chooser,
                                        GtkAction        *action)
 {
   GtkAction *prev_action;
@@ -1185,8 +1185,8 @@ _gtk_recent_chooser_set_use_action_appearance (GtkRecentChooser *recent_chooser,
     {
 
       g_object_set_qdata (G_OBJECT (recent_chooser), quark_gtk_use_action_appearance, GINT_TO_POINTER (!use_appearance));
-      
-      gtk_activatable_reset (GTK_ACTIVATABLE (recent_chooser), action);
+      gtk_activatable_sync_action_properties (GTK_ACTIVATABLE (recent_chooser), action);
     }
 }
 
index d8fecb2fbc45b5a4b6ebef7c907079bdebebf060..9b485f2a34aa11cc09d2933c3f711cbd4c808afc 100644 (file)
@@ -284,10 +284,10 @@ static gboolean recent_view_query_tooltip_cb      (GtkWidget        *widget,
                                                    gpointer          user_data);
 
 static void gtk_recent_chooser_activatable_iface_init (GtkActivatableIface  *iface);
-static void gtk_recent_chooser_activatable_update     (GtkActivatable       *activatable,
+static void gtk_recent_chooser_update                 (GtkActivatable       *activatable,
                                                       GtkAction            *action,
                                                       const gchar          *property_name);
-static void gtk_recent_chooser_activatable_reset      (GtkActivatable       *activatable,
+static void gtk_recent_chooser_sync_action_properties (GtkActivatable       *activatable,
                                                       GtkAction            *action);
 
 G_DEFINE_TYPE_WITH_CODE (GtkRecentChooserDefault,
@@ -318,12 +318,12 @@ gtk_recent_chooser_iface_init (GtkRecentChooserIface *iface)
   iface->list_filters = gtk_recent_chooser_default_list_filters;
 }
 
-static void 
-gtk_recent_chooser_activatable_iface_init (GtkActivatableIface  *iface)
+static void
+gtk_recent_chooser_activatable_iface_init (GtkActivatableIface *iface)
 
-{  
-  iface->update = gtk_recent_chooser_activatable_update;
-  iface->reset  = gtk_recent_chooser_activatable_reset;
+{
+  iface->update = gtk_recent_chooser_update;
+  iface->sync_action_properties = gtk_recent_chooser_sync_action_properties;
 }
 
 static void
@@ -1948,10 +1948,10 @@ set_recent_manager (GtkRecentChooserDefault *impl,
     }
 }
 
-static void 
-gtk_recent_chooser_activatable_update (GtkActivatable       *activatable,
-                                      GtkAction            *action,
-                                      const gchar          *property_name)
+static void
+gtk_recent_chooser_update (GtkActivatable *activatable,
+                          GtkAction      *action,
+                          const gchar    *property_name)
 {
   if (strcmp (property_name, "visible") == 0)
     {
@@ -1964,13 +1964,13 @@ gtk_recent_chooser_activatable_update (GtkActivatable       *activatable,
   if (strcmp (property_name, "sensitive") == 0)
     gtk_widget_set_sensitive (GTK_WIDGET (activatable), gtk_action_is_sensitive (action));
 
-  _gtk_recent_chooser_activatable_update (activatable, action, property_name);
+  _gtk_recent_chooser_update (activatable, action, property_name);
 }
 
 
 static void 
-gtk_recent_chooser_activatable_reset (GtkActivatable       *activatable,
-                                     GtkAction            *action)
+gtk_recent_chooser_sync_action_properties (GtkActivatable *activatable,
+                                          GtkAction      *action)
 {
   if (action)
     {
@@ -1982,7 +1982,7 @@ gtk_recent_chooser_activatable_reset (GtkActivatable       *activatable,
       gtk_widget_set_sensitive (GTK_WIDGET (activatable), gtk_action_is_sensitive (action));
     }
 
-  _gtk_recent_chooser_activatable_reset (activatable, action);
+  _gtk_recent_chooser_sync_action_properties (activatable, action);
 }
 
 
index 67c9b0522ebce1d52c99dbb34c952b5500815bf4..1dd2ac26a39ab9ffcf000863802b98560c299634 100644 (file)
@@ -161,10 +161,10 @@ static void     manager_changed_cb (GtkRecentManager *manager,
                                    gpointer          user_data);
 
 static void gtk_recent_chooser_activatable_iface_init (GtkActivatableIface  *iface);
-static void gtk_recent_chooser_activatable_update     (GtkActivatable       *activatable,
+static void gtk_recent_chooser_update                 (GtkActivatable       *activatable,
                                                       GtkAction            *action,
                                                       const gchar          *property_name);
-static void gtk_recent_chooser_activatable_reset      (GtkActivatable       *activatable,
+static void gtk_recent_chooser_sync_action_properties (GtkActivatable       *activatable,
                                                       GtkAction            *action);
 
 G_DEFINE_TYPE_WITH_CODE (GtkRecentChooserMenu,
@@ -193,12 +193,11 @@ gtk_recent_chooser_iface_init (GtkRecentChooserIface *iface)
   iface->list_filters = gtk_recent_chooser_menu_list_filters;
 }
 
-static void 
-gtk_recent_chooser_activatable_iface_init (GtkActivatableIface  *iface)
-
-{  
-  iface->update = gtk_recent_chooser_activatable_update;
-  iface->reset = gtk_recent_chooser_activatable_reset;
+static void
+gtk_recent_chooser_activatable_iface_init (GtkActivatableIface *iface)
+{
+  iface->update = gtk_recent_chooser_update;
+  iface->sync_action_properties = gtk_recent_chooser_sync_action_properties;
 }
 
 static void
@@ -1173,24 +1172,24 @@ gtk_recent_chooser_menu_set_show_tips (GtkRecentChooserMenu *menu,
   gtk_container_foreach (GTK_CONTAINER (menu), foreach_set_shot_tips, menu);
 }
 
-static void 
-gtk_recent_chooser_activatable_update (GtkActivatable       *activatable,
-                                      GtkAction            *action,
-                                      const gchar          *property_name)
+static void
+gtk_recent_chooser_update (GtkActivatable *activatable,
+                          GtkAction      *action,
+                          const gchar    *property_name)
 {
   if (strcmp (property_name, "sensitive") == 0)
     gtk_widget_set_sensitive (GTK_WIDGET (activatable), gtk_action_is_sensitive (action));
 
-  _gtk_recent_chooser_activatable_update (activatable, action, property_name);
+  _gtk_recent_chooser_update (activatable, action, property_name);
 }
 
-static void 
-gtk_recent_chooser_activatable_reset (GtkActivatable       *activatable,
-                                     GtkAction            *action)
+static void
+gtk_recent_chooser_sync_action_properties (GtkActivatable *activatable,
+                                          GtkAction      *action)
 {
   gtk_widget_set_sensitive (GTK_WIDGET (activatable), gtk_action_is_sensitive (action));
 
-  _gtk_recent_chooser_activatable_reset (activatable, action);
+  _gtk_recent_chooser_sync_action_properties (activatable, action);
 }
 
 
index 23ea2b497c02d025e66fc0fbfd14165e1b13fd90..13ae206ca13651a8d38dde007215b4caadb7058a 100644 (file)
@@ -38,10 +38,10 @@ GList *           _gtk_recent_chooser_get_items              (GtkRecentChooser
 void              _gtk_recent_chooser_item_activated         (GtkRecentChooser  *chooser);
 void              _gtk_recent_chooser_selection_changed      (GtkRecentChooser  *chooser);
 
-void              _gtk_recent_chooser_activatable_update     (GtkActivatable       *activatable,
+void              _gtk_recent_chooser_update                 (GtkActivatable       *activatable,
                                                              GtkAction            *action,
                                                              const gchar          *property_name);
-void              _gtk_recent_chooser_activatable_reset      (GtkActivatable       *activatable,
+void              _gtk_recent_chooser_sync_action_properties (GtkActivatable       *activatable,
                                                              GtkAction            *action);
 void              _gtk_recent_chooser_set_related_action     (GtkRecentChooser     *recent_chooser, 
                                                              GtkAction            *action);
index 6526f82fe2ac79a6cda1ed6a52c331388b53b57b..ddc6678ffd206bb1c5170abec02f9d08e62c5866 100644 (file)
@@ -71,11 +71,11 @@ static void gtk_toggle_button_update_state  (GtkButton            *button);
 
 
 static void gtk_toggle_button_activatable_interface_init (GtkActivatableIface  *iface);
-static void gtk_toggle_button_activatable_update         (GtkActivatable       *activatable,
-                                                         GtkAction            *action,
-                                                         const gchar          *property_name);
-static void gtk_toggle_button_activatable_reset          (GtkActivatable       *activatable,
-                                                         GtkAction            *action);
+static void gtk_toggle_button_update                (GtkActivatable       *activatable,
+                                                     GtkAction            *action,
+                                                     const gchar          *property_name);
+static void gtk_toggle_button_sync_action_properties (GtkActivatable       *activatable,
+                                                     GtkAction            *action);
 
 static GtkActivatableIface *parent_activatable_iface;
 static guint                toggle_button_signals[LAST_SIGNAL] = { 0 };
@@ -151,19 +151,18 @@ gtk_toggle_button_init (GtkToggleButton *toggle_button)
   GTK_BUTTON (toggle_button)->depress_on_activate = TRUE;
 }
 
-
-static void 
-gtk_toggle_button_activatable_interface_init (GtkActivatableIface  *iface)
+static void
+gtk_toggle_button_activatable_interface_init (GtkActivatableIface *iface)
 {
   parent_activatable_iface = g_type_interface_peek_parent (iface);
-  iface->update = gtk_toggle_button_activatable_update;
-  iface->reset = gtk_toggle_button_activatable_reset;
+  iface->update = gtk_toggle_button_update;
+  iface->sync_action_properties = gtk_toggle_button_sync_action_properties;
 }
 
 static void
-gtk_toggle_button_activatable_update (GtkActivatable   *activatable,
-                                     GtkAction        *action,
-                                     const gchar      *property_name)
+gtk_toggle_button_update (GtkActivatable *activatable,
+                         GtkAction      *action,
+                         const gchar    *property_name)
 {
   GtkToggleButton *button;
 
@@ -181,12 +180,12 @@ gtk_toggle_button_activatable_update (GtkActivatable   *activatable,
 }
 
 static void
-gtk_toggle_button_activatable_reset (GtkActivatable   *activatable,
-                                    GtkAction        *action)
+gtk_toggle_button_sync_action_properties (GtkActivatable *activatable,
+                                         GtkAction      *action)
 {
   GtkToggleButton *button;
 
-  parent_activatable_iface->reset (activatable, action);
+  parent_activatable_iface->sync_action_properties (activatable, action);
 
   if (!GTK_IS_TOGGLE_ACTION (action))
     return;
index 4d1e2a9cfdb075a25f4c21a8499ad5458b9fcc7f..bb26802fe253b0d1bfc8aba1bfba442cdd2f37d0 100644 (file)
@@ -71,10 +71,10 @@ static void menu_item_activated (GtkWidget           *widget,
 
 
 static void gtk_toggle_tool_button_activatable_interface_init (GtkActivatableIface  *iface);
-static void gtk_toggle_tool_button_activatable_update         (GtkActivatable       *activatable,
+static void gtk_toggle_tool_button_update                     (GtkActivatable       *activatable,
                                                               GtkAction            *action,
                                                               const gchar          *property_name);
-static void gtk_toggle_tool_button_activatable_reset          (GtkActivatable       *activatable,
+static void gtk_toggle_tool_button_sync_action_properties     (GtkActivatable       *activatable,
                                                               GtkAction            *action);
 
 static GtkActivatableIface *parent_activatable_iface;
@@ -311,18 +311,18 @@ button_toggled (GtkWidget           *widget,
     }
 }
 
-static void 
-gtk_toggle_tool_button_activatable_interface_init (GtkActivatableIface  *iface)
+static void
+gtk_toggle_tool_button_activatable_interface_init (GtkActivatableIface *iface)
 {
   parent_activatable_iface = g_type_interface_peek_parent (iface);
-  iface->update = gtk_toggle_tool_button_activatable_update;
-  iface->reset = gtk_toggle_tool_button_activatable_reset;
+  iface->update = gtk_toggle_tool_button_update;
+  iface->sync_action_properties = gtk_toggle_tool_button_sync_action_properties;
 }
 
 static void
-gtk_toggle_tool_button_activatable_update (GtkActivatable  *activatable,
-                                          GtkAction       *action,
-                                          const gchar     *property_name)
+gtk_toggle_tool_button_update (GtkActivatable *activatable,
+                              GtkAction      *action,
+                              const gchar    *property_name)
 {
   GtkToggleToolButton *button;
 
@@ -339,12 +339,12 @@ gtk_toggle_tool_button_activatable_update (GtkActivatable  *activatable,
 }
 
 static void
-gtk_toggle_tool_button_activatable_reset (GtkActivatable  *activatable,
-                                         GtkAction       *action)
+gtk_toggle_tool_button_sync_action_properties (GtkActivatable *activatable,
+                                              GtkAction      *action)
 {
   GtkToggleToolButton *button;
 
-  parent_activatable_iface->reset (activatable, action);
+  parent_activatable_iface->sync_action_properties (activatable, action);
 
   if (!GTK_IS_TOGGLE_ACTION (action))
     return;
index 2f7d8f1bf4688415463cbae9f85bea9d687c1228..89231ea3ac8e6ce7ef4c94bccae04143da444e04 100644 (file)
@@ -80,10 +80,10 @@ static void gtk_tool_button_style_set      (GtkWidget          *widget,
 static void gtk_tool_button_construct_contents (GtkToolItem *tool_item);
 
 static void gtk_tool_button_activatable_interface_init (GtkActivatableIface  *iface);
-static void gtk_tool_button_activatable_update         (GtkActivatable       *activatable,
+static void gtk_tool_button_update                     (GtkActivatable       *activatable,
                                                        GtkAction            *action,
                                                        const gchar          *property_name);
-static void gtk_tool_button_activatable_reset          (GtkActivatable       *activatable,
+static void gtk_tool_button_sync_action_properties     (GtkActivatable       *activatable,
                                                        GtkAction            *action);
 
 
@@ -740,14 +740,14 @@ static void
 gtk_tool_button_activatable_interface_init (GtkActivatableIface  *iface)
 {
   parent_activatable_iface = g_type_interface_peek_parent (iface);
-  iface->update = gtk_tool_button_activatable_update;
-  iface->reset = gtk_tool_button_activatable_reset;
+  iface->update = gtk_tool_button_update;
+  iface->sync_action_properties = gtk_tool_button_sync_action_properties;
 }
 
 static void
-gtk_tool_button_activatable_update (GtkActivatable       *activatable,
-                                   GtkAction            *action,
-                                   const gchar          *property_name)
+gtk_tool_button_update (GtkActivatable *activatable,
+                       GtkAction      *action,
+                       const gchar    *property_name)
 {
   GtkToolButton *button;
   GtkWidget *image;
@@ -789,14 +789,14 @@ gtk_tool_button_activatable_update (GtkActivatable       *activatable,
 }
 
 static void
-gtk_tool_button_activatable_reset (GtkActivatable       *activatable,
-                                  GtkAction            *action)
+gtk_tool_button_sync_action_properties (GtkActivatable *activatable,
+                                       GtkAction      *action)
 {
   GtkToolButton *button;
   GIcon         *icon;
   const gchar   *stock_id;
 
-  parent_activatable_iface->reset (activatable, action);
+  parent_activatable_iface->sync_action_properties (activatable, action);
 
   if (!action)
     return;
index 6360c444a498c8ad6696d744c23582e4147b4264..9c00b0dab23474be875c08a6478a30f41e0dda4b 100644 (file)
@@ -128,10 +128,10 @@ static gboolean gtk_tool_item_real_set_tooltip (GtkToolItem *tool_item,
                                                const gchar *tip_private);
 
 static void gtk_tool_item_activatable_interface_init (GtkActivatableIface  *iface);
-static void gtk_tool_item_activatable_update         (GtkActivatable       *activatable,
+static void gtk_tool_item_update                     (GtkActivatable       *activatable,
                                                      GtkAction            *action,
                                                      const gchar          *property_name);
-static void gtk_tool_item_activatable_reset          (GtkActivatable       *activatable,
+static void gtk_tool_item_sync_action_properties     (GtkActivatable       *activatable,
                                                      GtkAction            *action);
 static void gtk_tool_item_set_related_action         (GtkToolItem          *item, 
                                                      GtkAction            *action);
@@ -579,17 +579,17 @@ _gtk_tool_item_create_menu_proxy (GtkToolItem *item)
   return FALSE;
 }
 
-static void 
-gtk_tool_item_activatable_interface_init (GtkActivatableIface  *iface)
+static void
+gtk_tool_item_activatable_interface_init (GtkActivatableIface *iface)
 {
-  iface->update = gtk_tool_item_activatable_update;
-  iface->reset = gtk_tool_item_activatable_reset;
+  iface->update = gtk_tool_item_update;
+  iface->sync_action_properties = gtk_tool_item_sync_action_properties;
 }
 
-static void 
-gtk_tool_item_activatable_update (GtkActivatable       *activatable,
-                                 GtkAction            *action,
-                                 const gchar          *property_name)
+static void
+gtk_tool_item_update (GtkActivatable *activatable,
+                     GtkAction      *action,
+                     const gchar    *property_name)
 {
   if (strcmp (property_name, "visible") == 0)
     {
@@ -614,9 +614,9 @@ gtk_tool_item_activatable_update (GtkActivatable       *activatable,
                                    gtk_action_get_is_important (action));
 }
 
-static void 
-gtk_tool_item_activatable_reset (GtkActivatable       *activatable,
-                                GtkAction            *action)
+static void
+gtk_tool_item_sync_action_properties (GtkActivatable *activatable,
+                                     GtkAction      *action)
 {
   if (!action)
     return;
@@ -656,14 +656,14 @@ gtk_tool_item_set_related_action (GtkToolItem *item,
 }
 
 static void
-gtk_tool_item_set_use_action_appearance (GtkToolItem *item, 
+gtk_tool_item_set_use_action_appearance (GtkToolItem *item,
                                         gboolean     use_appearance)
 {
   if (item->priv->use_action_appearance != use_appearance)
     {
       item->priv->use_action_appearance = use_appearance;
-      
-      gtk_activatable_reset (GTK_ACTIVATABLE (item), item->priv->action);
+
+      gtk_activatable_sync_action_properties (GTK_ACTIVATABLE (item), item->priv->action);
     }
 }